﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ASale_QCList.aspx.cs" Inherits="ArtLand.OA.Project.AfterSale.ASale_QCList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <script src="../js/WebCommon.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Grid1"  />
    <ext:Grid ID="Grid1" Title="客户回访管理"  ShowBorder="false" runat="server" EnableCheckBoxSelect="false" DataKeyNames="ID"
        OnRowDataBound="Grid1_RowDataBound" OnRowCommand="Grid1_RowCommand" EnableRowNumber="True" EnableColumnLines="true"  AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange">
         <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnNew" Text="添加回访记录" Icon="Add" EnablePostBack="false" OnClientClick="TabView('/AfterSale/ASale_QCChange.aspx','tab_qcadd','添加回访记录','');" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
            <ext:TemplateField RenderAsRowExpander="true">
                <ItemTemplate>
                    <%#Eval("ProjRemark") %>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:BoundField Width="110px" DataField="QCNUBR" DataFormatString="{0}" HeaderText="回访编号" />
            <ext:BoundField Width="80px" DataField="CUSNAM" DataFormatString="{0}" HeaderText="客户名称" TextAlign="Center" />
            <ext:BoundField Width="150px" DataField="ADDRES" DataFormatString="{0}" HeaderText="地址" />
             <ext:BoundField Width="80px" DataField="CONTAT" DataFormatString="{0}" HeaderText="联系人" TextAlign="Center" />
            <ext:BoundField Width="100px" DataField="TELNUB" DataFormatString="{0}" HeaderText="电话" />
            <ext:BoundField Width="130px" DataField="QCDATE" DataFormatString="{0:yyyy-MM-dd}" HeaderText="回访日期" />
            <ext:BoundField Width="70px" DataField="ENGNAM" DataFormatString="{0}" HeaderText="回访人" TextAlign="Center" />
            <ext:BoundField Width="130px" DataField="FRTIME" DataFormatString="{0:yyyy-MM-dd}" HeaderText="到达时间" />
            <ext:BoundField Width="130px" DataField="TOTIME" DataFormatString="{0:yyyy-MM-dd}" HeaderText="离开时间" />
             <ext:BoundField Width="60px" DataField="ID" DataFormatString="{0}" HeaderText="修改" TextAlign="Center" />
            <%--<ext:WindowField ColumnID="myWindowField" Width="60px" WindowID="Window1" Text="" Icon="CommentEdit" DataTextFormatString="{0}" DataIFrameUrlFields="ID"
                DataIFrameUrlFormatString="ASale_QCChange.aspx?id={0}" DataWindowTitleField="CUSNAM"
                DataWindowTitleFormatString="修改 - {0}" HeaderText="修改" TextAlign="Center" />--%>
            <ext:LinkButtonField ConfirmText="你确定要这么做么？" HeaderText="删除" ConfirmTarget="Top" Icon="CommentDelete" ColumnID="ID"
                Width="50px" CommandName="Del" Text="" TextAlign="Center" />
            <ext:BoundField Width="60px" DataField="ID" DataFormatString="{0}" HeaderText="打印" TextAlign="Center" />
            
        </Columns>
    </ext:Grid>
    <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank" Target="Top" IsModal="True" Width="600px" Height="450px">
    </ext:Window>
    <ext:Window ID="Window2" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank" Target="Top" IsModal="True" Width="550px" Height="550px">
    </ext:Window>
    </form>
    <script src="../js/extgridbug.js"></script>
</body>
</html>
